.Net Framework > v3.5.21022.8 > System > Linq > Enumerable > ToDictionary<TSource,TKey,TElement> ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>,Func<TSource,TKey>,Func<TSource,TElement>)
ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>,Func<TSource,TKey>,Func<TSource,TElement>,IEqualityComparer<TKey>)


ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>,Func<TSource,TKey>,Func<TSource,TElement>)

Category
Method
Description
Creates a System.Collections.Generic.Dictionary`2 from an System.Collections.Generic.IEnumerable`1 according to specified key selector and element selector functions.
Type
System.Collections.Generic.Dictionary<TKey,TElement>
Character
public, static
Parameters
NameTypeDescription
sourceSystem.Collections.Generic.IEnumerable<TSource>
keySelectorSystem.Func<TSource,TKey>
elementSelectorSystem.Func<TSource,TElement>
Attributes
NameValue/Assignment
ExtensionAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>,Func<TSource,TKey>,Func<TSource,TElement>,IEqualityComparer<TKey>)

Category
Method
Description
Creates a System.Collections.Generic.Dictionary`2 from an System.Collections.Generic.IEnumerable`1 according to a specified key selector function, a comparer, and an element selector function.
Type
System.Collections.Generic.Dictionary<TKey,TElement>
Character
public, static
Parameters
NameTypeDescription
sourceSystem.Collections.Generic.IEnumerable<TSource>
keySelectorSystem.Func<TSource,TKey>
elementSelectorSystem.Func<TSource,TElement>
comparerSystem.Collections.Generic.IEqualityComparer<TKey>
Attributes
NameValue/Assignment
ExtensionAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database